cmake_minimum_required(VERSION 3.20)
project(RobloxAPI CXX)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)

# Add compiler warnings
if(MSVC)
    add_compile_options(/W4)
else()
    add_compile_options(-Wall -Wextra -Wpedantic)
endif()

# Source files
add_library(RobloxAPI STATIC
    group.cpp
    group_role.cpp
    http_helper.cpp
    outfit.cpp
    search_api.cpp
)

target_include_directories(RobloxAPI PUBLIC
    ${CMAKE_CURRENT_SOURCE_DIR}
)

# Optional: Enable testing
# enable_testing()
# add_subdirectory(tests)
